package com.mtz.enums;

import lombok.Getter;

/**
 * @author 煜赜
 * @date 2018/11/27 0027 上午 9:40
 */
@Getter
public enum ResultEnum {
    /** 结果状态. */
    SUCCESS(0, "成功"),

    PARAM_ERROR(1, "参数不正确"),

    ID_NOT_EXIST(10,"id不存在"),

    KEY_NOT_EXIST(11, "关键词(keyword)不存在"),

    AUTHOR_NOT_EXIST(12, "修改人(author)不存在"),

    ANGLE_NOT_EXIST(13, "视角(angle)不存在"),

    IS_Deleted_ERROR(14, "信息状态(isDeleted)错误"),

    TYPE_NOT_EXIST(15, "类型不存在"),

    USER_NOT_EXIST(16, "用户不存在"),

    PASSWORD_ERROR(16, "密码错误"),

    ;

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
